package com.xiaominfo.oss.common.pojo;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author lien
 * @Date 2019/12/24 16:31
 * @Description 当前请求线程中的缓存工具对象
 **/
public class ThreadLocalHolder {
	
	//appid
	private static final ThreadLocal<HttpServletRequest> th_request=new ThreadLocal<HttpServletRequest>();

	public static HttpServletRequest getRequest(){
		return th_request.get();
	}
	
	public static void setRequest(HttpServletRequest request){
		th_request.set(request);
	}

}
